From 4000f53bc2751cca1a9bb868ab4b482cd28c8dc5 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Fri, 10 Dec 2010 16:40:05 +0000 Subject: [PATCH] x86: acpi: Fix reboot attempt sequence. Signed-off-by: Keir Fraser --- xen/arch/x86/shutdown.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/x86/shutdown.c b/xen/arch/x86/shutdown.c index 7fbc33e485..c8821ed0a1 100644 --- a/xen/arch/x86/shutdown.c +++ b/xen/arch/x86/shutdown.c @@ -358,7 +358,7 @@ void machine_restart(unsigned int delay_millisecs) * After this we revert to our usual sequence: * KBD -> TRIPLE -> KBD -> TRIPLE -> KBD -> ... */ - reboot_type = (((attempt == 0) && (orig_reboot_type == BOOT_ACPI)) + reboot_type = (((attempt == 1) && (orig_reboot_type == BOOT_ACPI)) ? BOOT_ACPI : BOOT_TRIPLE); break; case BOOT_TRIPLE: -- 2.30.2